package org.teamh.logic.lobby;

import java.util.ArrayList;
import java.util.List;

public class Team {
	
	String teamName;
	List<String> players;
	
	public Team(String teamName, String playerName) {
		this.players = new ArrayList<String>();
		players.add(playerName);
		this.teamName = teamName;
	}
	
	public void addPlayer(String player) {
		if (!players.contains(player)) {
			players.add(player);
		}
		
	}
	
	public void removePlayer(String player) {
		players.remove(player);
	}
	
	public List<String> getPlayers() {
		return players;
	}
	
	public String getTeamName() {
		return teamName;
	}
}
